package com.jyhz.model.controller;

import com.jyhz.common.dto.HttpResult;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author:谢君臣
 * @Date:2021/6/13-10:45
 * @version:1.0
 * @function:
 */
@Controller
@Api(tags = "党建活动模块信息")
public class ApplicationInfo {
    @ResponseBody
    @RequestMapping("/actuator/info")
    public HttpResult getInfo(){
        return new HttpResult(200,null,"江汉党建-党建活动",String.valueOf(System.currentTimeMillis()));
    }
    @ApiIgnore
    @RequestMapping(value = {"/actuator/swagger","/api"})
    public String swaggerPage() {
        return "redirect:doc.html";
    }
}
